package cn.remex.wechat.beans;

import cn.remex.RemexConstants;
import cn.remex.RemexConstants.LocationCollectionChannel;
import cn.remex.db.rsql.model.ModelableImpl;

import javax.persistence.Index;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by Administrator on 2017/4/21.
 */
@Table(
        indexes = {@Index(columnList = "toUserName"),@Index(columnList = "fromUserName"),@Index(columnList = "msgCreateTime")}
)
public class WeChatUserLocation extends ModelableImpl {
    private String fromUserName;//	成员UserID
    private String toUserName;//企业号CorpID
    private String eventKey;
    private String latitude;//	地理位置纬度
    private String longitude;//	地理位置经度
    private String precision;// 地理位置精度
    private String address;//地理位置
    private Date msgCreateTime;//消息创建时间
    private LocationCollectionChannel collectionChannel;

    public LocationCollectionChannel getCollectionChannel() {
        return collectionChannel;
    }

    public void setCollectionChannel(LocationCollectionChannel collectionChannel) {
        this.collectionChannel = collectionChannel;
    }

    public Date getMsgCreateTime() {
        return msgCreateTime;
    }

    public void setMsgCreateTime(Date msgCreateTime) {
        this.msgCreateTime = msgCreateTime;
    }

    public String getFromUserName() {
        return fromUserName;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName;
    }

    public String getToUserName() {
        return toUserName;
    }

    public void setToUserName(String toUserName) {
        this.toUserName = toUserName;
    }

    public String getEventKey() {
        return eventKey;
    }

    public void setEventKey(String eventKey) {
        this.eventKey = eventKey;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getPrecision() {
        return precision;
    }

    public void setPrecision(String precision) {
        this.precision = precision;
    }


    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
